<?php
class CV_Datastore_Metadata_Model_Provider_Relational implements CV_Datastore_Metadata_Model_Provider, ArrayAccess{
	function __construct( $relational_schema ){
		$this->relational_schema = $relational_schema;
		$this->classes = array();
		foreach( $this->relational_schema->databases as $database_name => $database ){
			foreach( $database->tables as $table_name => $table ){
				$this->classes[$table_name] = new CV_Datastore_Metadata_Model_Provider_Relational_Class( $table );
			}
		}
	}
	function offsetGet( $class ){
		return $this->classes[$class];
	}
	function offsetSet( $name, $value ){}
	function offsetExists( $name ){}
	function offsetUnset( $name ){}	 
}